Learn R Programming

MXM (version 0.9.5)

Plot of an (un)directed graph: Plot of an (un)directed graph

Description

Plot of an (un)directed graph.

Usage

plota(G)

Arguments

G
The adjacency matrix as produced from mmhc.skel or any other algorithm. This can correspond to an undirected, partially directed or a completely directed graph.

Value

The plot of the directed graph.

Details

This visualises the directed graph.

References

%

See Also

mmhc.skel, nei, pc.skel, mb

Examples

Run this code
# simulate a dataset with continuous data
dataset <- matrix(runif(1000 * 20, 1, 100), nrow = 1000 ) 
a <- mmhc.skel(dataset, max_k = 3, threshold = 0.05, test = "testIndFisher", 
rob = FALSE, nc = 1) 
plota(a$G)

Run the code above in your browser using DataLab